package com.base.data.elasticsearch.repository.query;


import com.base.data.elasticsearch.core.operation.BaseElasticsearchOperations;
import org.springframework.data.repository.query.QueryMethod;
import org.springframework.data.repository.query.RepositoryQuery;

/**
 * AbstractElasticsearchRepositoryQuery
 */

public abstract class BaseAbstractElasticsearchRepositoryQuery implements RepositoryQuery {

    protected BaseElasticsearchQueryMethod queryMethod;
    protected BaseElasticsearchOperations elasticsearchOperations;

    public BaseAbstractElasticsearchRepositoryQuery(BaseElasticsearchQueryMethod queryMethod,
                                                BaseElasticsearchOperations elasticsearchOperations) {
        this.queryMethod = queryMethod;
        this.elasticsearchOperations = elasticsearchOperations;
    }

    @Override
    public QueryMethod getQueryMethod() {
        return queryMethod;
    }
}
